package GameMain.View.Chat
{
	import Engine.Module.ModuleBase;
	
	import GameMain.Game;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	public class Chat extends ModuleBase
	{
		
		private var _chat_bg:MovieClip = null;
		
		public function Chat(p_content:Sprite=null)
		{
			super(p_content);
			this.x = 8; this.y = 430;
			this._chat_bg = this._content["CHAT_BG"] as MovieClip;
			Game.ControlMgr.getButton(this._content["locok"]);
			Game.ControlMgr.getButton(this._content["clearBtn"]);
			Game.ControlMgr.getButton(this._content["upBtn"]);
			Game.ControlMgr.getButton(this._content["downBtn"]);
			Game.ControlMgr.getButton(this._content["DDbtn"]);
		}
		
		public function showChatHall():void
		{
			this._chat_bg.gotoAndStop(1);
		}
		
		override protected function onShowBack():void
		{
			this._chat_bg.gotoAndStop(2);
		}
	}
}